<template>
    <div class="w-full h-full flex flex-col pb-2.65rem  ">
        <iframe src=" http://localhost:3033" class="h-full w-full absolute -z-1" />

        <!-- <img :src="headerPng" class=" w-full h-4rem"> -->
        <div class="flex items-center justify-between pl-7.8rem pr-3.4rem mt-2.3rem ">
            <SvgIcon class="h-12rem w-44.4rem" local-icon="ai" />
            <!-- <SvgIcon class="h-12rem w-62.7rem" local-icon="tq" /> -->
            <SvgIcon class="h-16.2rem w-18.1rem relative -top-1rem" local-icon="time" />
        </div>
        <!-- <div class="flex items-center flex-col absolute bottom-20rem right-7rem">
            <div @click="pushUrl('map')">
                <SvgIcon class="w-20.9rem h-18.6rem text-white cursor-pointer" local-icon="map-bg" />
            </div>
            <div @click="pushUrl('music')">
                <SvgIcon class="w-20.9rem h-18.6rem cursor-pointer" local-icon="music-bg" />
            </div>
            <div @click="devFn">
                <SvgIcon class="h-17.6rem w-17.6rem relative right-2rem  cursor-pointer" local-icon="app" />
            </div>
        </div> -->




    </div>
</template>

<script lang="ts" setup>
import { useMessage } from 'naive-ui'
import headerPng from '@/assets/images/header.png';
import { NavacationAction, eventNavagation, NavagationMainEventID, NavagationWidget } from '@/hooks/business/eventListen/navagationEventListen';

interface Emits {
    (e: 'pushUrl', url: string): void;
}
const emit = defineEmits<Emits>();
const message = useMessage()

function pushUrl(url: string) {
    emit('pushUrl', url);
    if (url === 'car') {
        eventNavagation(NavacationAction.Click, NavagationWidget.NavagationMain, NavagationMainEventID.NavagationMainCar);
    } else if (url === 'map') {
        eventNavagation(NavacationAction.Click, NavagationWidget.NavagationMain, NavagationMainEventID.NavagationMainMap);
    } else if (url === 'music') {
        eventNavagation(NavacationAction.Click, NavagationWidget.NavagationMain, NavagationMainEventID.NavagationMainMusic);
    }
}

function devFn() {
    message.warning('开发中...')
}
</script>